package com.siemens.industrial.app;

import org.quartz.Scheduler;
import org.quartz.SchedulerException;
import org.quartz.impl.StdSchedulerFactory;

/**
 * Created by David on 2016/11/16.
 */
public enum DaemonFactory {
    INSTANCE;

    private Scheduler scheduler = null;

    DaemonFactory ()  {
        try {
            scheduler =  StdSchedulerFactory.getDefaultScheduler();
        } catch (SchedulerException e) {
            e.printStackTrace();
        }
    }

    public Scheduler getInstance() {
        return scheduler;
    }
}
